package cn.edu.neusoft.demo.hospital2.Service.impl;

import cn.edu.neusoft.demo.hospital2.Dao.DoctorWorkDao;
import cn.edu.neusoft.demo.hospital2.Service.DoctorWorkService;
import cn.edu.neusoft.demo.hospital2.pojo.DoctorWork;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DoctorWorkServiceImpl implements DoctorWorkService {

    @Autowired
    private DoctorWorkDao doctorWorkDao;

    @Override
    public List<DoctorWork> getDoctorWorkByDoctorId(String doctorId) {
        return doctorWorkDao.getDoctorWorkByDoctorId(doctorId);
    }

    //根据id，day删除医生排班信息
    public int deleteByDocIdAndDay(String docId, String day) {
        return doctorWorkDao.deleteByDocIdAndDay(docId, day);
    }
}